<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>My JSP 'templateTable.jsp' starting page</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css" href="css/template.css">

	</head>

	<body>
		<div class="templetContainer">
			<table class="templetTable">
				<tr>
					<th class="templet_1">
						模板名
					</th>
					<th class="templet_2">
						操作
					</th>
				</tr>
				<s:if test="templets!=null">
					<s:iterator value="templets" id="templet" status="st">
						<tr>
							<td class="templetTable_1">
								${templet.fileName}
							</td>
							<td class="templetTable_2">
								<a href=download.action?url=${templet.fileUrl}>下载</a>
							</td>
						</tr>
					</s:iterator>
				</s:if>
				<s:else>
		暂无模板
	</s:else>
			</table>
		</div>
	</body>
</html>
